<template>
  <div class="seller">
    <div class="main-image">
      <img src="./img/00.png">
      <div class="mask">
        <p class="title">欢迎入驻百思凯，欢迎入驻百思凯。</p>
        <button themeLinear class="join-button">立即入驻</button>
      </div>
    </div>

    <div class="platform-duty">
      <p class="headline">我们能为您做什么?</p>
      <p class="description">您是否有意愿将产品进口到中国</p>
      <div class="platform-container">
        <div shadow class="platform-wrapper">
          <p>您的产品未进入过中国</p>
          <ul>
            <li>清关服务</li>
            <li>报告整改报告整改</li>
            <li>陪同翻译</li>
            <li>陪同翻译</li>
            <li>陪同翻译</li>
          </ul>
        </div>
        <div shadow class="platform-wrapper">
          <p>您的产品已进入过中国</p>
          <ul>
            <li>清关服务</li>
            <li>报告整改报告整改</li>
            <li>陪同翻译</li>
            <li>陪同翻译</li>
            <li>陪同翻译</li>
          </ul>
        </div>
      </div>
      <button class="view-more">查看全部</button>
    </div>

    <div class="exhibition-container">
      <div class="exhibition-wrapper">
        <div class="exhibition-content">
          <p>开设店铺，宣传产品</p>
          <p>免费开店</p>
          <p>上传产品，吸引采购商</p>
          <p>直接与采购商交流，无中间环节</p>
          <button themeLinear>立即入驻</button>
        </div>
        <div class="img-wrapper">
          <img src="./img/01.png">
        </div>
      </div>
      <div class="exhibition-wrapper">
        <div class="img-wrapper">
          <img src="./img/02.png">
        </div>
        <div class="exhibition-content">
          <p>跟踪采购商求购</p>
          <p>浏览买家求购信息</p>
          <p>公开竞价</p>
          <p>与买家直接沟通</p>
          <button themeBorder-2 themeColor>了解详情</button>
        </div>
      </div>
      <div class="exhibition-wrapper">
        <div class="exhibition-content">
          <p>进口食品峰会</p>
          <p>精准匹配相应采购商</p>
          <p>1对1交流沟通</p>
          <p>促进订单达成</p>
          <button themeLinear>立即入驻</button>
        </div>
        <div class="img-wrapper">
          <img src="./img/03.png">
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'MainPage'
}
</script>

<style lang="scss" scoped>
.main-image {
  width: 100%;
  position: relative;
  font-size: 0;
  img {
    width: 100%;
  }
  .mask {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    p {
      font-size: .96rem;
      color: #fff;
      font-weight: 500;
      letter-spacing: 5px;
    }
    button {
      width: 4rem;
      height: 1rem;
      border-radius: 4px;
      font-size: 0.36rem;
      color: #fff;
      margin-top: 1.7rem;
      box-shadow: unset;
    }
  }
}
.platform-duty {
  box-sizing: border-box;
  padding: 1.6rem 0;
  .headline {
    text-align: center;
    font-size: .72rem;
    line-height: 1rem;
    font-weight: bold;
  }
  .description {
    text-align: center;
    margin-top: .32rem;
    color: #666;
    font-size: 16px;
    line-height: .5rem;
  }
  .platform-container {
    width: 24rem;
    margin: 1rem auto;
    display: flex;
    justify-content: space-between;
    height: 9rem;
    .platform-wrapper {
      width: 11.6rem;
      border: 1px solid transparent;
      transition: all .3s;
      background: {
        repeat: no-repeat;
        position-x: right;
        position-y: bottom;
      };
      box-sizing: border-box;
      padding: 1rem 0 0 1rem;
      &:hover {
        border-color: #FB5005;
      }
      p {
        font-size: .48rem;
        color: #333333;
        font-weight: bolder;
        margin-bottom: 1rem;
      }
      ul {
        li {
          margin-bottom: .4rem;
          &:before {
            content: '●';
            color: #43A7FF;
            margin-right: 0.2rem;
            font-size: 0.4rem;
          }
          &:after {
            content: '→';
            color: #43A7FF;
            margin-left: 0.4rem;
            font-size: 0.4rem;
          }
        }
      }
    }
    .platform-wrapper:first-child {
      background-image: url('./img/1.png');
    }
    .platform-wrapper:last-child {
      background-image: url('./img/2.png');
    }
  }
  .view-more {
    display: block;
    margin: 0 auto;
    width: 4rem;
    height: .96rem;
    border: 1px solid #FB5005;
    color: #FB5005;
    background: #fff;
    font-size: .4rem;
  }
}
.exhibition-container {
  margin-bottom: 1.4rem;
  .exhibition-wrapper {
    width: 100%;
    display: flex;
    .img-wrapper {
      width: 50%;
      img {
        height: 100%;
        width: 100%;
      }
    }
    .exhibition-content {
      width: 50%;
      display: flex;
      flex-direction: column;
      justify-content: center;
      box-sizing: border-box;
      padding-left: 3rem;
      p {
        font-size: 0.4rem;
        margin-bottom: .82rem;
        &:first-child {
          font-size: 0.72rem;
          font-weight: bold;
          margin-bottom: 1.2rem;
        }
      }
      button {
        width: 4rem;
        height: 1rem;
        color: #fff;
        font-size: 0.36rem;
      }
    }
  }
  .exhibition-wrapper:first-child {
    .img-wrapper {
      background: #eee;
    }
  }
  .exhibition-wrapper:nth-child(2) {
    margin-bottom: -2rem;
    .exhibition-content {
      background: #eee;
      button {
        background: #fff;
      }
    }
  }
}

</style>
